<?php
namespace App\Api\Requests;
class AddressRequest extends Request
{
    public function rules()
    {
        return [
            "patient_id" => "required",
            "contact_person" => "required",
            "contact_phone" => "required",
            "contact_province_id" => "required",
            "contact_province_name" => "required",
            // "contact_city_id" => "required",
            // "contact_city_name" => "required",
            // "contact_district_id" => "required",
            // "contact_district_name" => "required",
            "contact_address" => "required",
        ];
    }
    public function messages()
    {
        return [
            "patient_id.required" => "参数错误",
            "contact_person.required" => "请填写联系人",
            "contact_phone.required" => "请填写联系电话",
            "contact_province_id.required" => "请填写省ID",
            "contact_province_name.required" => "请填写省",
            // "contact_city_id.required" => "请填写市ID",
            // "contact_city_name.required" => "请填写市",
            // "contact_district_id.required" => "请填写地区ID",
            // "contact_district_name.required" => "请填写地区",
            "contact_address.required" => "请填写详细地址"
        ];
    }
}
